package cc.uncarbon.module.custom.entity;

import cc.uncarbon.framework.crud.entity.HelioBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 商户
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "store")
public class StoreEntity extends HelioBaseEntity<Long> {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "商户名称")
    @TableField(value = "name")
    private String name;

    @Schema(description = "微信支付商户号")
    @TableField(value = "store_mchid")
    private String storeMchid;

    @Schema(description = "商户地址")
    @TableField(value = "address")
    private String address;

    @Schema(description = "商户Logo图片链接")
    @TableField(value = "logo")
    private String logo;

    @Schema(description = "法人姓名")
    @TableField(value = "legal_person_name")
    private String legalPersonName;

    @Schema(description = "法人联系电话")
    @TableField(value = "legal_person_phone")
    private String legalPersonPhone;

    @Schema(description = "身份证正面图片链接")
    @TableField(value = "id_card_front")
    private String idCardFront;

    @Schema(description = "身份证反面图片链接")
    @TableField(value = "id_card_back")
    private String idCardBack;

    @Schema(description = "排序序号")
    @TableField(value = "sort_order")
    private Integer sortOrder;

    @Schema(description = "状态")
    @TableField(value = "status")
    private EnabledStatusEnum status;

}
